@(repository: gitbucket.core.service.RepositoryService.RepositoryInfo,
  groupAndPerm: Map[String, Boolean])(implicit context: gitbucket.core.controller.Context)
@import gitbucket.core.view.helpers
<h2 class="facebox-header">Where should we fork this repository?</h2>
<form action="@helpers.url(repository)/fork" id="fork" method="post">
  <div class="owner-select-grid">
    <div class="owner-select-target js-fork-owner-select-target enabled">@helpers.avatar(context.loginAccount.get.userName, 100)<span class="owner css-truncate" title="@@@context.loginAccount.get.userName">@@@context.loginAccount.get.userName</span></div>
    @for((groupName, isManager) <- groupAndPerm) {
      @if(isManager) {
        <div class="owner-select-target js-fork-owner-select-target enabled">@helpers.avatar(groupName, 100)<span class="owner css-truncate" title="@@@groupName">@@@groupName</span></div>
      } else {
        <div title="You don't have permission to fork here."  class="owner-select-target js-fork-owner-select-target disabled">@helpers.avatar(groupName, 100)<span class="owner css-truncate" title="@@@groupName">@@@groupName</span></div>
      }
    }
    </div>
  </div>
  <input id="account" name="account" type="hidden" />
</form>